<template>
  <div>
    <el-breadcrumb separator="/">
      <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item
        ><a :href="$route.path">{{ $route.meta.title }}</a></el-breadcrumb-item
      >
    </el-breadcrumb>
     <el-button type="primary" @click="logout">退出登录</el-button>
  </div>
</template>
<script>
export default {
  methods:{
    logout(){
      this.$router.push('/login')
    }
  }
};
</script>
<style>
</style>